

$(function(){

	YuXi.InfoQuery.init({	
		url:"CommentFilter/commentInfoList.do",
		query:{
			
				currentPage:1
			},					
		success:function(data){					
				YuXi.Render.InformationSeach(data.list,5,"点评信息");//调用信息查询的页面渲染模块
			},
			getQueryParm:function(){
						var query={};
						query={
							
							currentPage:1
						}
						YuXi.InfoQuery.queryData=YuXi.ALLSearch.base(query);
					},
				error:function(){},
				/* selector:{
					nextPage:$("#nextPage"),
					prevPage:$("#prevPage"),
					firstPage:$("#headPage"),
					lastPage:$("#endPage"),
					totalPage:$("#totalPage")
					此项为默认项
				}	 */
		});		
  //跳转到详情界面
  $(document).on("click",".detail",function(){
	  var id= $(this).attr("data-id");
		var menuId=$("#menu-container").attr("menu-id");
		window.location.href = '../information/subDetailInfo.jsp?menuId='+menuId+'&detailId=' + id;
	
  })
 $(document).on("click",".update",function(){
	 var id= $(this).attr("data-id");	
	// $("#input-task-finsh-btn").attr("data-id",id);
	 //$("#modal-input-task-finsh-context").modal("show");
	window.location.href = 'commentInfo.jsp?updateId=' + id+'&menuId=18'; 
  })
 
 

})